@import '~antd/es/style/themes/default.less';

@import '~highlight.js/styles/default.css';
@import '~highlight.js/styles/github.css';

html,
body,
#root {
    height: 100%;
}

.colorWeak {
    filter: invert(80%);
}

.ant-layout {
    min-height: 100vh;
}

canvas {
    display: block;
}

body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
    list-style: none;
}

@media screen and (max-width: 1200px) {
    #root {
        width: 1200px;
        min-width: 1200px;
    }
    body {
        overflow-x: auto;
    }
}

@media (max-width: @screen-xs) {
    .ant-table {
        width: 100%;
        overflow-x: auto;
        &-thead > tr,
        &-tbody > tr {
            > th,
            > td {
                white-space: pre;
                > span {
                    display: block;
                }
            }
        }
    }
}

// 兼容IE11
@media screen and(-ms-high-contrast: active), (-ms-high-contrast: none) {
    body .ant-design-pro > .ant-layout {
        min-height: 100vh;
    }
}

.ant-layout-header {
    height: 50px !important;
}

.ant-pro-fixed-header {
    transition: none !important;
}

.ant-pro-basicLayout-content {
    margin: 0 !important;
}
.ant-pro-basicLayout-children-content-wrap {
    min-height: 100%;
    // background-color: #ffffff;
}

.ant-pro-grid-content.ant-layout {
    overflow-x: hidden;
    overflow-y: auto !important;
}

.ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed {
    left: unset;
}

.ant-notification-notice-message {
    word-break: break-word;
}

.ant-tabs-bar {
    border-bottom: none;
}

// .ant-tabs-nav::before{
//   border:none !important;
// }

.ant-spin-blur {
    opacity: 0 !important;
}

// .ant-select-dropdown{ z-index: 1000 !important;}

.ant-tag:hover {
    opacity: 1;
}

// ------------start 修改ProTable表格组件"列设置"框title栏-------------
.ant-popover-title {
    height: unset !important;
    line-height: unset !important;
    padding: 5px 20px 4px !important;
}
// -------------end 修改ProTable表格组件"列设置"框title栏---------------

.ant-layout {
    background-color: #f5f5f5;
}

#env_env_info {
    word-break: break-all;
}

.self_popover_no_content .ant-popover-content .ant-popover-inner .ant-popover-inner-content {
    padding: 0;
}

.ant-tooltip {
    max-width: unset;
}

.ant-tooltip-inner {
    max-width: 510px;
    max-height: 320px;
    overflow: auto;
    word-break: normal;
}

.ant-popover-inner-content {
    width: 100%;
    &>div {
        width: 100%;
    }
}
/* .tooltip_no_pub {
    transform: translateX(-4px) !important;
    transform-origin: 20px 0px !important;
} */